import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom';

// 路由
import { Router } from './/config/router.js';
// 示例模块
import Client from './Client.js';
// 整合页面路由页面
import PageList from './page/PageList.js';

class App extends Component {

	componentWillMount() {
		console.log(this)
		
	}
	componentDidMount() {}
	componentWillReceiveProps(newProps) {}
	shouldComponentUpdate(newProps, newState) {
		return true;
	}
	componentWillUpdate(nextProps, nextState) {}
	componentDidUpdate(prevProps, prevState) {}
	componentWillUnmount() {}

	render() {
		return (
			<div className="App">
				<Switch>
					<Route path={ Router.client.path } component={ Client }/>
					<Route component={ PageList }/>
					{/*<Route render={() => ( "404" )}/>*/}
				</Switch>
			</div>
		);
	}
}

export default App;
